package tt.com.business.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.business.service.CommonServeProvidersService;
import tt.com.common.model.YxCommonServeProviders;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping(value = "serveProviders/select")
//服务项目的前后端/api/serveProviders/select/xxxx
public class CommonServeProvidersController {

    @Autowired
    private CommonServeProvidersService serveProvidersService;

    //根据服务类型ID进行服务项的查询
    @PostMapping(value = "select/serviceId")
    public ResponseEntity selectServiceId(@RequestBody YxCommonServeProviders yxCommonServeProviders, HttpServletRequest request){
        return serveProvidersService.selectServiceId(yxCommonServeProviders.getServeTypeId());

    }

}
